package pers.cocoadel.ribbon.config;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author rwby
 */
@Configuration
public class LoadBalanceConfig
{
    @Bean
    public IRule rule()
    {
        return new RandomRule();
//        return new MyRule();
    }
}
